<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>酒店预订</title>
<link href="${pageContext.request.contextPath}/views/html/css/1.css" rel="stylesheet" type="text/css">
</head>
<body>
	<header> 
		<audio controls="controls" preload="auto" style="width:200px;height:20px;margin-right: 70px;">
			<source src="mp4/Kiss the rain.mp3"  type="audio/mpeg"></source>
		</audio>
		<span style="color:#ff0000;">欢迎用户：<%=request.getSession().getAttribute("username")%>&nbsp;&nbsp;</span><a href="login.jsp" >登录</a> | <a href="register.jsp">免费注册</a>
	</header>
	<div class="wrap">
		<div id="container">
			<div><img src="images/logo.jpg" width="700px"></div>
			<div id="globallink">
				<ul>
					<li><a href="int.jsp">首页</a></li>
					<li><a href="#">酒店预订</a></li>
					<li><a href="web/dtzjd.jsp">地图找酒店</a></li>
					<li><a href="web/tg.jsp">团购</a></li>
					<li><a href="web/order.jsp">订单</a></li>
					<li><a href="#">联系我们</a></li>
					<li><a href="int.jsp">返回</a></li>
				</ul>
			</div>
			<div id="left">
				<div id="category">
					<h4><span>我的订单</span></h4>
					<ul>
                    	<li><a href="${pageContext.request.contextPath}/order/findHAll" target="main">所有订单</a></li>
                        <li><a href="${pageContext.request.contextPath}/order/findHAll" target="main">已购买</a></li>
	                    <li><a href="" target="main">待付款</a></li>
	                    <li><a href="" target="main">待评价</a></li>		
					</ul>
				</div>
	   		</div>
	    	<div id="main">
				<div id="recommend">
					<table>
						<tr style="height:40px;background-color: #7CA8DE;text-align: center;">
							<td width="200">订单编号</td>
							<td>酒店名称</td>
							<td>房间类别</td>
							<td>价格</td>
							<td width="200px">入住时间</td>
							<td width="120px">操作</td>
						</tr>
						<c:forEach items="${orderlist}" var="a">
						<tr>
					       <td>${a.orderBH}</td>
					       <td>${a.nameJD}</td>
					       <td>${a.category}</td>
					       <td>￥${a.price}</td>
					       <td>${a.time}</td>
					       <td>
					       		<a href="${pageContext.request.contextPath}/order/deleteH?id=${a.id}">删除</a>
				       	   </td>
						</tr>
						</c:forEach>
					</table>
				</div>
			</div>
		</div>
	</div>
	<footer style="margin-top:500px;">
		<a title="关于我们" >关于我们</a> | <a title="加入我们">加入我们</a> | <a title="网站地图" >网站地图</a> | <a title="帮助中心">帮助中心</a> | <a title="友情链接">友情链接</a>
	</footer>
</body>
</html>